package com.kongmou.springReview.advanced.SpringTest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
@ComponentScan
public class SpringTestConfig {
	
	@Bean
	@Profile("dev")
	public TestBean devTestBean(){
		return new TestBean("from dev");
	}
	@Bean
	@Profile("prod")
	public  TestBean prodTestBean(){
		return new TestBean("From prod");
	}

}
